<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Generator" content="Asbru Web Content Editor">
<meta http-equiv="Copyright" content="(C) 2002-2006 - Asbru Ltd. - www.asbrusoft.com">
<script type="text/javascript" src="webeditor.properties.js"></script>
<title>Asbru Web Content Editor</title>
<link rel="stylesheet" href="../dtree.css" type="text/css">
<link rel="stylesheet" type="text/css" href="../hardcore.css">
<link rel="stylesheet" type="text/css" href="webeditor.css">
<script type="text/javascript">

document.title = HtmlDecode(Text('columnproperties_title'));

function requestParameter(name) {
	var value = "";
	if (start = request.indexOf("?"+name+"=")+1) {
		value = request.substring(start+name.length+1);
	} else if (start = request.indexOf("&"+name+"=")+1) {
		value = request.substring(start+name.length+1);
	}
	if (value.indexOf("&")+1) {
		value = value.substring(0, value.indexOf("&"));
	}
	value = unescape(value);
	return value;
}

window.focus();
var request = "" + window.location;
editor = requestParameter("editor");

function initform() {
	document.forms[0].width.value = requestParameter("width");
	document.forms[0].height.value = requestParameter("height");
	document.forms[0].bgcolor.value = requestParameter("bgcolor");
	document.forms[0].bordercolor.value = requestParameter("bordercolor");
	document.forms[0].background.value = requestParameter("background");
	document.forms[0].background.options[0].text = requestParameter("background");
	document.forms[0].background.options[0].value = requestParameter("background");
	document.forms[0].align.value = requestParameter("align");
	document.forms[0].valign.value = requestParameter("valign");
	document.forms[0].htmlclass.value = requestParameter("htmlclass");
	if (document.getElementById && document.getElementById("bgcolor_preview")) document.getElementById("bgcolor_preview").style.backgroundColor = document.forms[0].bgcolor.value;
	if (document.getElementById && document.getElementById("bordercolor_preview")) document.getElementById("bordercolor_preview").style.backgroundColor = document.forms[0].bordercolor.value;
}

function updatecolumn(form) {
	window.opener[editor].updateColumn(form);
	window.close();
}

function selectcolor(attribute) {
	if (document.getElementById) {
		window.open('colour.html?editor=table&attribute='+attribute, 'colour_window', ',width=400,height=325,scrollbars=yes,resizable=yes,status=yes', true);
	}
}

</script>
<script type="text/javascript">

var table = new Object();

</script>
<script type="text/javascript" language="Javascript1.4">

if (! table.bgcolor) {
	table.bgcolor = function (color) {
		try {
			document.forms[0].bgcolor.value = color;
			if (document.getElementById("bgcolor_preview")) document.getElementById("bgcolor_preview").style.backgroundColor = color;
		} catch(e) {
		}
	}
}

if (! table.bordercolor) {
	table.bordercolor = function (color) {
		try {
			document.forms[0].bordercolor.value = color;
			if (document.getElementById("bordercolor_preview")) document.getElementById("bordercolor_preview").style.backgroundColor = color;
		} catch(e) {
		}
	}
}

</script>
<!--[if GTE IE 5]>
<script Language="Javascript">

if (! table.bgcolor) {
	table.bgcolor = function (color) {
		try {
			document.forms[0].bgcolor.value = color;
			if (document.getElementById("bgcolor_preview")) document.getElementById("bgcolor_preview").style.backgroundColor = color;
		} catch(e) {
		}
	}
}

if (! table.bordercolor) {
	table.bordercolor = function (color) {
		try {
			document.forms[0].bordercolor.value = color;
			if (document.getElementById("bordercolor_preview")) document.getElementById("bordercolor_preview").style.backgroundColor = color;
		} catch(e) {
		}
	}
}

</script>
<![endif]-->
<script type="text/javascript">

if (! table.bgcolor) {
	table.bgcolor = function (color) {
		document.forms[0].bgcolor.value = color;
	}
}

if (! table.bordercolor) {
	table.bordercolor = function (color) {
		document.forms[0].bordercolor.value = color;
	}
}

</script>
</head>
<body onLoad="initform();">
<form action="#" onSubmit="javascript:updatecolumn(this); return false;">
<table width="100%" border="0" class="dtree">
	<tr align="left" valign="top"> 
		<td colspan="4" class="webeditor_window_title"><script type="text/javascript">document.write(Text('columnproperties_title'));</script></td>
	</tr>
	<tr align="left" valign="top"> 
		<td colspan="2" width="50%">
			<fieldset>
			<legend class="webeditor_window_heading"><script type="text/javascript">document.write(Text('columnproperties_size'));</script></legend>
				<table width="100%">
					<tr>
						<td class="webeditor_window_attribute"><script type="text/javascript">document.write(Text('columnproperties_size_width'));</script></td>
						<td class="webeditor_window_value"> 
							<input type="text" name="width" size="5" value="">
						</td>
					</tr>
					<tr>
						<td class="webeditor_window_attribute"><script type="text/javascript">document.write(Text('columnproperties_size_height'));</script></td>
						<td class="webeditor_window_value"> 
							<input type="text" name="height" size="5" value="">
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
	<tr align="left" valign="top"> 
		<td colspan="4" width="100%">
			<fieldset>
			<legend class="webeditor_window_heading"><script type="text/javascript">document.write(Text('columnproperties_alignment'));</script></legend>
				<table width="100%">
					<tr>
						<td class="webeditor_window_attribute"><script type="text/javascript">document.write(Text('columnproperties_alignment_horizontal'));</script></td>
						<td class="webeditor_window_value"> 
							<select name="align">
								<script type="text/javascript">
								document.write('<option value="">' + Text('columnproperties_alignment_horizontal_default'));
								document.write('<option value="left">' + Text('columnproperties_alignment_horizontal_left'));
								document.write('<option value="center">' + Text('columnproperties_alignment_horizontal_center'));
								document.write('<option value="right">' + Text('columnproperties_alignment_horizontal_right'));
								</script>
							</select>
						</td>
						<td class="webeditor_window_attribute"><script type="text/javascript">document.write(Text('columnproperties_alignment_vertical'));</script></td>
						<td class="webeditor_window_value"> 
							<select name="valign">
								<script type="text/javascript">
								document.write('<option value="">' + Text('columnproperties_alignment_vertical_default'));
								document.write('<option value="top">' + Text('columnproperties_alignment_vertical_top'));
								document.write('<option value="middle">' + Text('columnproperties_alignment_vertical_middle'));
								document.write('<option value="bottom">' + Text('columnproperties_alignment_vertical_bottom'));
								document.write('<option value="baseline">' + Text('columnproperties_alignment_vertical_baseline'));
								</script>
							</select>
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
	<tr align="left" valign="top"> 
		<td colspan="2" width="50%">
			<fieldset>
			<legend class="webeditor_window_heading"><script type="text/javascript">document.write(Text('columnproperties_border'));</script></legend>
				<table width="100%">
					<tr>
						<td class="webeditor_window_attribute"><script type="text/javascript">document.write(Text('columnproperties_border_color'));</script></td>
						<td class="webeditor_window_value"> 
							<span style="white-space: nowrap;"><input type="text" name="bordercolor" size="8" value="" onChange="javascript:table.bordercolor(this.value);"><a target="_blank" onClick="javascript:selectcolor('bordercolor');"><img alt="" id="bordercolor_preview" style="border: 1px outset; background-color: white; width: 21px; height: 20px; vertical-align: top" src="spacer.gif"><img alt="" style="border: 1px outset; background-color: #C0C0C0; vertical-align: top" src="backcolor.gif"></a></span>
						</td>
					</tr>
					<tr>
						<td class="webeditor_window_attribute">&nbsp;</td>
						<td class="webeditor_window_value"> 
							<div style="height: 22px;">&nbsp;</div>
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
		<td colspan="2" width="50%">
			<fieldset>
			<legend class="webeditor_window_heading"><script type="text/javascript">document.write(Text('columnproperties_background'));</script></legend>
				<table width="100%">
					<tr>
						<td class="webeditor_window_attribute"><script type="text/javascript">document.write(Text('columnproperties_background_color'));</script></td>
						<td class="webeditor_window_value"> 
							<span style="white-space: nowrap;"><input type="text" name="bgcolor" size="8" value="" onChange="javascript:table.bgcolor(this.value);"><a target="_blank" onClick="javascript:selectcolor('bgcolor');"><img alt="" id="bgcolor_preview" style="border: 1px outset; background-color: white; width: 21px; height: 20px; vertical-align: top" src="spacer.gif"><img alt="" style="border: 1px outset; background-color: #C0C0C0; vertical-align: top" src="backcolor.gif"></a></span>
						</td>
					</tr>
					<tr>
						<td class="webeditor_window_attribute"><script type="text/javascript">document.write(Text('columnproperties_background_image'));</script></td>
						<td class="webeditor_window_value">
<script type="text/javascript">
<!--
							document.writeln('<select name="background" style="width: 145px;">');
							document.writeln('<option value=" ">&nbsp;');
							document.writeln('<option value="">' + Text('columnproperties_background_image_none'));
<cfif links is not "" >
	var myoptionkeys = new Array();
	var myoptions = new Object();
	<cfdirectory action="list" directory="#links#" name="entry">
	<cfloop query="entry">
		<cfscript>
		if (REFindNoCase(allowed_files, entry.Name) GT 0) {
			mediaclass = "";
			if (Len(entry.Name) LT 4) {
				mediaclass = "image";
			} else if (Mid(entry.Name, Len(entry.Name)-3, 4) is ".swf") {
				mediaclass = "flash";
			} else if (Len(entry.Name) LT 6) {
				mediaclass = "image";
			} else if (Mid(entry.Name, Len(entry.Name)-5, 6) is ".class") {
				mediaclass = "applet";
			} else {
				mediaclass = "image";
			}
			if (mediaclass is "image") {
				WriteOutput("myoptionkeys[myoptionkeys.length] = '" & entry.Name & "';" & Chr(13) & Chr(10));
				WriteOutput("myoptions['" & entry.Name & "'] = '" & links_path & entry.Name & "';" & Chr(13) & Chr(10));
			}
		}
		</cfscript>
	</cfloop>
	function mysort(a,b) {
		if (a.toLowerCase() < b.toLowerCase()) return -1;
		if (a.toLowerCase() > b.toLowerCase()) return 1;
		return 0;
	}
	myoptionkeys.sort(mysort);
	for (myoption in myoptionkeys) if (typeof(myoptionkeys[myoption]) != "function") {
		document.writeln('<option value="' + myoptions[myoptionkeys[myoption]] + '">' + myoptionkeys[myoption]);
	}
<cfelse>
							document.writeln('<option value="http://www.asbrusoft.com/hardcore/logo.gif">Asbru logo');
</cfif>
							document.writeln('<\/select>');
// -->
</script>
						</td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
	<tr align="left" valign="top"> 
		<td colspan="4">
			<fieldset>
			<legend class="webeditor_window_heading"><script type="text/javascript">document.write(Text('class_id'));</script></legend>
				<table width="100%">
					<tr>
						<td class="webeditor_window_attribute"><script type="text/javascript">document.write(Text('htmlclass'));</script></td>
						<td class="webeditor_window_value"> 
							<input type="text" name="htmlclass" size="20" value="">
						</td>
						<td></td>
						<td width="50%"><td>
					</tr>
				</table>
			</fieldset>
		</td>
	</tr>
</table>
<br>
<div align="center">
<script type="text/javascript">document.write('<input type="submit" value="' + Text('ok') + '">');</script>
<script type="text/javascript">document.write('<input type="button" value="' + Text('cancel') + '" onClick="window.close()">');</script>
</div>
</form>
</body>
</html>
